package io.renren.dao;

import io.renren.common.dao.BaseDao;
import io.renren.common.entity.XlsShopOrdersEntity;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 线上订单表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
@Mapper
public interface XlsShopOrdersDao extends BaseDao<XlsShopOrdersEntity> {

    List<XlsShopOrdersEntity> selectShopOrdersList(XlsShopOrdersEntity shopOrders);

    BigDecimal selectSumCashByOrderunique(String orderunique);

    List<Map<String,Object>> selectShopOrdersInfoList(XlsShopOrdersEntity shopOrders);

    int addShopOrder(XlsShopOrdersEntity shopOrders);
}